package inheritance.superkw;

public class Animal {

	private String name;
	private String color;
	private int age;
	private String sex;

	public Animal() {

	}

	public Animal(String name, String color, int age, String sex) {

		this.name = name;
		this.color = color;
		this.age = age;
		this.sex = sex;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getDetail() {
		return name + "-" + color + "-" + age + "-" + sex;
	}

}
